﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Runtime.CompilerServices;
using AutoR.Models;
using AutoR.ViewModels.Tasks;
using Prism.Mvvm;
using Syncfusion.ListView.XForms;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views.Tasks
{
	// Token: 0x02000018 RID: 24
	[XamlFilePath("Views\\Tasks\\SelectEquipment.xaml")]
	public class SelectEquipment : ContentPage
	{
		// Token: 0x0600006D RID: 109 RVA: 0x0000EF89 File Offset: 0x0000D189
		public SelectEquipment()
		{
			this.InitializeComponent();
		}

		// Token: 0x0600006E RID: 110 RVA: 0x0000EF97 File Offset: 0x0000D197
		private void SfListView_OnSelectionChanged(object sender, ItemSelectionChangedEventArgs e)
		{
			SelectEquipmentViewModel selectEquipmentViewModel = (SelectEquipmentViewModel)base.BindingContext;
			if (selectEquipmentViewModel != null)
			{
				selectEquipmentViewModel.EquipListView_OnSelectionChanged((UserEquipment)((SfListView)sender).SelectedItem);
			}
			((SfListView)sender).SelectedItem = null;
		}

		// Token: 0x0600006F RID: 111 RVA: 0x0000EFCB File Offset: 0x0000D1CB
		private void Picker_OnSelectedIndexChanged(object sender, EventArgs e)
		{
			SelectEquipmentViewModel selectEquipmentViewModel = (SelectEquipmentViewModel)base.BindingContext;
			if (selectEquipmentViewModel == null)
			{
				return;
			}
			selectEquipmentViewModel.GenEquipList();
		}

		// Token: 0x06000070 RID: 112 RVA: 0x0000EFCB File Offset: 0x0000D1CB
		private void Switch_OnToggled(object sender, ToggledEventArgs e)
		{
			SelectEquipmentViewModel selectEquipmentViewModel = (SelectEquipmentViewModel)base.BindingContext;
			if (selectEquipmentViewModel == null)
			{
				return;
			}
			selectEquipmentViewModel.GenEquipList();
		}

		// Token: 0x06000071 RID: 113 RVA: 0x0000EFE4 File Offset: 0x0000D1E4
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(SelectEquipment).GetTypeInfo().Assembly.GetName(), "Views/Tasks/SelectEquipment.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			Label label = new Label();
			BindingExtension bindingExtension = new BindingExtension();
			string item = "全部";
			string item2 = "航母";
			string item3 = "轻母";
			string item4 = "装母";
			string item5 = "战列";
			string item6 = "航战";
			string item7 = "战巡";
			string item8 = "重巡";
			string item9 = "航巡";
			string item10 = "雷巡";
			string item11 = "轻巡";
			string item12 = "重炮";
			string item13 = "驱逐";
			string item14 = "潜母";
			string item15 = "潜艇";
			string item16 = "炮潜";
			string item17 = "补给";
			string item18 = "导驱";
			string item19 = "防驱";
			Picker picker = new Picker();
			Label label2 = new Label();
			BindingExtension bindingExtension2 = new BindingExtension();
			Switch @switch = new Switch();
			StackLayout stackLayout = new StackLayout();
			BindingExtension bindingExtension3 = new BindingExtension();
			BindingExtension bindingExtension4 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
			Image image = new Image();
			BindingExtension bindingExtension5 = new BindingExtension();
			BindingExtension bindingExtension6 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer2 = new TapGestureRecognizer();
			Image image2 = new Image();
			BindingExtension bindingExtension7 = new BindingExtension();
			BindingExtension bindingExtension8 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer3 = new TapGestureRecognizer();
			Image image3 = new Image();
			BindingExtension bindingExtension9 = new BindingExtension();
			BindingExtension bindingExtension10 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer4 = new TapGestureRecognizer();
			Image image4 = new Image();
			BindingExtension bindingExtension11 = new BindingExtension();
			Label label3 = new Label();
			BindingExtension bindingExtension12 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer5 = new TapGestureRecognizer();
			Label label4 = new Label();
			StackLayout stackLayout2 = new StackLayout();
			StackLayout stackLayout3 = new StackLayout();
			Frame frame = new Frame();
			BindingExtension bindingExtension13 = new BindingExtension();
			GridLayout gridLayout = new GridLayout();
			DataTemplate dataTemplate = new DataTemplate();
			SfListView sfListView = new SfListView();
			StackLayout stackLayout4 = new StackLayout();
			NameScope nameScope = new NameScope();
			NameScope.SetNameScope(this, nameScope);
			((INameScope)nameScope).RegisterName("SfListView", sfListView);
			if (sfListView.StyleId == null)
			{
				sfListView.StyleId = "SfListView";
			}
			this.SfListView = sfListView;
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			this.SetValue(Page.TitleProperty, "指定装备");
			frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame.SetValue(View.MarginProperty, new Thickness(3.0));
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			stackLayout.SetValue(StackLayout.SpacingProperty, 0.0);
			label.SetValue(Label.TextProperty, "类型：");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout.Children.Add(label);
			bindingExtension.Path = "ShipType";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			picker.SetBinding(Picker.SelectedIndexProperty, binding);
			picker.SetValue(VisualElement.WidthRequestProperty, 60.0);
			picker.SelectedIndexChanged += this.Picker_OnSelectedIndexChanged;
			picker.Items.Add(item);
			picker.Items.Add(item2);
			picker.Items.Add(item3);
			picker.Items.Add(item4);
			picker.Items.Add(item5);
			picker.Items.Add(item6);
			picker.Items.Add(item7);
			picker.Items.Add(item8);
			picker.Items.Add(item9);
			picker.Items.Add(item10);
			picker.Items.Add(item11);
			picker.Items.Add(item12);
			picker.Items.Add(item13);
			picker.Items.Add(item14);
			picker.Items.Add(item15);
			picker.Items.Add(item16);
			picker.Items.Add(item17);
			picker.Items.Add(item18);
			picker.Items.Add(item19);
			stackLayout.Children.Add(picker);
			label2.SetValue(Label.TextProperty, "含被装备：");
			label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label2.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			stackLayout.Children.Add(label2);
			bindingExtension2.Path = "Rule.Equipped";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			@switch.SetBinding(Switch.IsToggledProperty, binding2);
			@switch.Toggled += this.Switch_OnToggled;
			stackLayout.Children.Add(@switch);
			stackLayout3.Children.Add(stackLayout);
			stackLayout2.SetValue(StackLayout.SpacingProperty, 0.0);
			stackLayout2.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			bindingExtension3.Path = "Rule.Equipment1Image";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			image.SetBinding(Image.SourceProperty, binding3);
			image.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image.SetValue(VisualElement.HeightRequestProperty, 36.0);
			bindingExtension4.Path = "SelectEquipCommand";
			BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
			tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding4);
			tapGestureRecognizer.SetValue(TapGestureRecognizer.CommandParameterProperty, "1");
			image.GestureRecognizers.Add(tapGestureRecognizer);
			stackLayout2.Children.Add(image);
			bindingExtension5.Path = "Rule.Equipment2Image";
			BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
			image2.SetBinding(Image.SourceProperty, binding5);
			image2.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image2.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image2.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension6.Path = "SelectEquipCommand";
			BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
			tapGestureRecognizer2.SetBinding(TapGestureRecognizer.CommandProperty, binding6);
			tapGestureRecognizer2.SetValue(TapGestureRecognizer.CommandParameterProperty, "2");
			image2.GestureRecognizers.Add(tapGestureRecognizer2);
			stackLayout2.Children.Add(image2);
			bindingExtension7.Path = "Rule.Equipment3Image";
			BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
			image3.SetBinding(Image.SourceProperty, binding7);
			image3.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image3.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image3.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension8.Path = "SelectEquipCommand";
			BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
			tapGestureRecognizer3.SetBinding(TapGestureRecognizer.CommandProperty, binding8);
			tapGestureRecognizer3.SetValue(TapGestureRecognizer.CommandParameterProperty, "3");
			image3.GestureRecognizers.Add(tapGestureRecognizer3);
			stackLayout2.Children.Add(image3);
			bindingExtension9.Path = "Rule.Equipment4Image";
			BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
			image4.SetBinding(Image.SourceProperty, binding9);
			image4.SetValue(VisualElement.WidthRequestProperty, 36.0);
			image4.SetValue(VisualElement.HeightRequestProperty, 36.0);
			image4.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 0.0, 0.0));
			bindingExtension10.Path = "SelectEquipCommand";
			BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
			tapGestureRecognizer4.SetBinding(TapGestureRecognizer.CommandProperty, binding10);
			tapGestureRecognizer4.SetValue(TapGestureRecognizer.CommandParameterProperty, "4");
			image4.GestureRecognizers.Add(tapGestureRecognizer4);
			stackLayout2.Children.Add(image4);
			bindingExtension11.Path = "SelectedEquip";
			bindingExtension11.StringFormat = "当前选择:{0}";
			BindingBase binding11 = ((IMarkupExtension<BindingBase>)bindingExtension11).ProvideValue(null);
			label3.SetBinding(Label.TextProperty, binding11);
			label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			BindableObject bindableObject = label3;
			BindableProperty fontSizeProperty = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
			string value = "13";
			XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
			Type typeFromHandle = typeof(IProvideValueTarget);
			object[] array = new object[0 + 6];
			array[0] = label3;
			array[1] = stackLayout2;
			array[2] = stackLayout3;
			array[3] = frame;
			array[4] = stackLayout4;
			array[5] = this;
			object service;
			xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, Label.FontSizeProperty, nameScope));
			xamlServiceProvider.Add(typeof(IReferenceProvider), service);
			Type typeFromHandle2 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
			xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xmlNamespaceResolver.Add("sl", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
			xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(SelectEquipment).GetTypeInfo().Assembly));
			xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(60, 114)));
			bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
			label3.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			stackLayout2.Children.Add(label3);
			label4.SetValue(Label.TextProperty, "移除");
			label4.SetValue(Label.TextColorProperty, Color.OrangeRed);
			label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label4.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
			label4.SetValue(View.MarginProperty, new Thickness(0.0, 0.0, 5.0, 0.0));
			bindingExtension12.Path = "EquipRemoveCommand";
			BindingBase binding12 = ((IMarkupExtension<BindingBase>)bindingExtension12).ProvideValue(null);
			tapGestureRecognizer5.SetBinding(TapGestureRecognizer.CommandProperty, binding12);
			label4.GestureRecognizers.Add(tapGestureRecognizer5);
			stackLayout2.Children.Add(label4);
			stackLayout3.Children.Add(stackLayout2);
			frame.SetValue(ContentView.ContentProperty, stackLayout3);
			stackLayout4.Children.Add(frame);
			bindingExtension13.Path = "Equip";
			BindingBase binding13 = ((IMarkupExtension<BindingBase>)bindingExtension13).ProvideValue(null);
			sfListView.SetBinding(SfListView.ItemsSourceProperty, binding13);
			sfListView.SetValue(SfListView.AutoFitModeProperty, AutoFitMode.Height);
			sfListView.SetValue(SfListView.SelectionModeProperty, SelectionMode.Single);
			sfListView.SetValue(SfListView.SelectionBackgroundColorProperty, Color.Red);
			sfListView.SelectionChanged += this.SfListView_OnSelectionChanged;
			gridLayout.SetValue(GridLayout.SpanCountProperty, 7);
			sfListView.SetValue(SfListView.LayoutManagerProperty, gridLayout);
			IDataTemplate dataTemplate2 = dataTemplate;
			SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32 <InitializeComponent>_anonXamlCDataTemplate_ = new SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32();
			object[] array2 = new object[0 + 4];
			array2[0] = dataTemplate;
			array2[1] = sfListView;
			array2[2] = stackLayout4;
			array2[3] = this;
			<InitializeComponent>_anonXamlCDataTemplate_.parentValues = array2;
			<InitializeComponent>_anonXamlCDataTemplate_.root = this;
			dataTemplate2.LoadTemplate = new Func<object>(<InitializeComponent>_anonXamlCDataTemplate_.LoadDataTemplate);
			sfListView.SetValue(SfListView.ItemTemplateProperty, dataTemplate);
			stackLayout4.Children.Add(sfListView);
			this.SetValue(ContentPage.ContentProperty, stackLayout4);
		}

		// Token: 0x06000072 RID: 114 RVA: 0x0000FBF8 File Offset: 0x0000DDF8
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(SelectEquipment));
			this.SfListView = this.FindByName("SfListView");
		}

		// Token: 0x04000041 RID: 65
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private SfListView SfListView;

		// Token: 0x02000019 RID: 25
		[CompilerGenerated]
		private sealed class <InitializeComponent>_anonXamlCDataTemplate_32
		{
			// Token: 0x06000074 RID: 116 RVA: 0x0000FC30 File Offset: 0x0000DE30
			internal object LoadDataTemplate()
			{
				BindingExtension bindingExtension = new BindingExtension();
				Image image = new Image();
				BindingExtension bindingExtension2 = new BindingExtension();
				Label label = new Label();
				AbsoluteLayout absoluteLayout = new AbsoluteLayout();
				BindingExtension bindingExtension3 = new BindingExtension();
				Label label2 = new Label();
				BindingExtension bindingExtension4 = new BindingExtension();
				ReferenceExtension referenceExtension = new ReferenceExtension();
				BindingExtension bindingExtension5 = new BindingExtension();
				Label label3 = new Label();
				StackLayout stackLayout = new StackLayout();
				Frame frame = new Frame();
				NameScope nameScope = new NameScope();
				NameScope.SetNameScope(frame, nameScope);
				frame.SetValue(View.MarginProperty, new Thickness(1.0));
				frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(1.0));
				stackLayout.SetValue(StackLayout.SpacingProperty, 0.0);
				absoluteLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
				absoluteLayout.SetValue(VisualElement.WidthRequestProperty, 36.0);
				absoluteLayout.SetValue(VisualElement.HeightRequestProperty, 36.0);
				bindingExtension.Path = "Image";
				BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
				image.SetBinding(Image.SourceProperty, binding);
				image.SetValue(VisualElement.WidthRequestProperty, 36.0);
				image.SetValue(VisualElement.HeightRequestProperty, 36.0);
				absoluteLayout.Children.Add(image);
				bindingExtension2.Path = "num";
				BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
				label.SetBinding(Label.TextProperty, binding2);
				label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
				label.SetValue(View.VerticalOptionsProperty, LayoutOptions.EndAndExpand);
				label.SetValue(Label.TextColorProperty, Color.White);
				label.SetValue(VisualElement.BackgroundColorProperty, Color.Gray);
				BindableObject bindableObject = label;
				BindableProperty fontSizeProperty = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
				string value = "10";
				XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
				Type typeFromHandle = typeof(IProvideValueTarget);
				int length;
				object[] array = new object[(length = this.parentValues.Length) + 4];
				Array.Copy(this.parentValues, 0, array, 4, length);
				object[] array2 = array;
				array2[0] = label;
				array2[1] = absoluteLayout;
				array2[2] = stackLayout;
				array2[3] = frame;
				object service;
				xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
				xamlServiceProvider.Add(typeof(IReferenceProvider), service);
				Type typeFromHandle2 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
				xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver.Add("sl", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32).GetTypeInfo().Assembly));
				xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(80, 40)));
				bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
				label.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.0, 0.0, 0.95, 0.95));
				label.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.SizeProportional);
				absoluteLayout.Children.Add(label);
				stackLayout.Children.Add(absoluteLayout);
				bindingExtension3.Path = "Name";
				BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
				label2.SetBinding(Label.TextProperty, binding3);
				label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
				label2.SetValue(Label.LineBreakModeProperty, LineBreakMode.NoWrap);
				BindableObject bindableObject2 = label2;
				BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
				string value2 = "8";
				XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
				Type typeFromHandle3 = typeof(IProvideValueTarget);
				int length2;
				object[] array3 = new object[(length2 = this.parentValues.Length) + 3];
				Array.Copy(this.parentValues, 0, array3, 3, length2);
				object[] array4 = array3;
				array4[0] = label2;
				array4[1] = stackLayout;
				array4[2] = frame;
				object service2;
				xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
				xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
				Type typeFromHandle4 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
				xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver2.Add("sl", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32).GetTypeInfo().Assembly));
				xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(82, 113)));
				bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
				stackLayout.Children.Add(label2);
				bindingExtension4.Path = "ShipEquips.Count";
				bindingExtension4.StringFormat = "装备: {0}";
				BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
				label3.SetBinding(Label.TextProperty, binding4);
				label3.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject3 = label3;
				BindableProperty fontSizeProperty3 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
				string value3 = "10";
				XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
				Type typeFromHandle5 = typeof(IProvideValueTarget);
				int length3;
				object[] array5 = new object[(length3 = this.parentValues.Length) + 3];
				Array.Copy(this.parentValues, 0, array5, 3, length3);
				object[] array6 = array5;
				array6[0] = label3;
				array6[1] = stackLayout;
				array6[2] = frame;
				object service3;
				xamlServiceProvider3.Add(typeFromHandle5, service3 = new SimpleValueTargetProvider(array6, Label.FontSizeProperty, nameScope));
				xamlServiceProvider3.Add(typeof(IReferenceProvider), service3);
				Type typeFromHandle6 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();
				xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver3.Add("sl", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32).GetTypeInfo().Assembly));
				xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(83, 126)));
				bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
				bindingExtension5.Path = "BindingContext.Rule.Equipped";
				referenceExtension.Name = "SfListView";
				IMarkupExtension markupExtension = referenceExtension;
				XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
				Type typeFromHandle7 = typeof(IProvideValueTarget);
				int length4;
				object[] array7 = new object[(length4 = this.parentValues.Length) + 4];
				Array.Copy(this.parentValues, 0, array7, 4, length4);
				object[] array8 = array7;
				array8[0] = bindingExtension5;
				array8[1] = label3;
				array8[2] = stackLayout;
				array8[3] = frame;
				object service4;
				xamlServiceProvider4.Add(typeFromHandle7, service4 = new SimpleValueTargetProvider(array8, typeof(BindingExtension).GetRuntimeProperty("Source"), nameScope));
				xamlServiceProvider4.Add(typeof(IReferenceProvider), service4);
				Type typeFromHandle8 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();
				xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver4.Add("sl", "clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms");
				xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(SelectEquipment.<InitializeComponent>_anonXamlCDataTemplate_32).GetTypeInfo().Assembly));
				xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(84, 36)));
				object source = markupExtension.ProvideValue(xamlServiceProvider4);
				bindingExtension5.Source = source;
				BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
				label3.SetBinding(VisualElement.IsVisibleProperty, binding5);
				stackLayout.Children.Add(label3);
				frame.SetValue(ContentView.ContentProperty, stackLayout);
				return frame;
			}

			// Token: 0x04000042 RID: 66
			internal object[] parentValues;

			// Token: 0x04000043 RID: 67
			internal SelectEquipment root;
		}
	}
}
